package com.yonyou.common.service.messagecenter.rabbitmq.service;

import java.util.concurrent.ConcurrentHashMap;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

public class AppStatusService {
	private static ConcurrentHashMap<String,String> appTrying=new ConcurrentHashMap<String,String>(); 
	public static void addErrorApp(String appid){
		appTrying.put(appid, "");
	}
	public static boolean isErrorApp(String appid){
		return appTrying.containsKey(appid);
	}
	public static void cleanErrorApp(String appid){
		appTrying.remove(appid);
	}
}
